package com.sxbbc.common.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxbbc.common.core.entity.jz.WWarehouseDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxbbc.common.core.utils.BasePage;

/**
 * <p>
 * 仓库商品详情表 服务类
 * </p>
 *
 * @author leehao
 * @since 2019-07-02
 */
public interface IWWarehouseDetailService extends IService<WWarehouseDetail> {

    /**
     * 更新仓库库存
     * @param detail 商品编码、skuId商品详情ID、wid仓库ID
     * @author leehao
     * @return boolean
     */
    boolean updateByWidAndProduct(WWarehouseDetail detail);

    /**
     * 查询商品仓库库存
     * @param page 分页
     * @param detail 查询
     * @author leehao
     */
    IPage<WWarehouseDetail> queryProductStock(BasePage<WWarehouseDetail> page,WWarehouseDetail detail);
}
